package jdbctest;
import java.sql.*;

public class ConnectionUtil {
	public static Connection getConnection() throws SQLException,ClassNotFoundException{
	Class.forName("org.sqlite.JDBC");
	   Connection con = DriverManager.getConnection("jdbc:sqlite:D:\\hj.db");
		return con;
}
	public static void closeConnection(Connection conn) throws SQLException{
		if (conn != null) {
			conn.close();
			}
		}
	}